﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

namespace LayoutHelpers
{
    public static class DebugEx
    {
      public static void AssertAndBreak(string message)
      {
        Debug.Assert(true, message);
        if (Debugger.IsAttached)
          Debugger.Break();
      }

      public static void AssertAndBreak(string message, params object[] args)
      {
        AssertAndBreak(string.Format(message, args));
      }
    }
}
